import Login from '@/views/Login.vue'
import Index from '@/views/Index.vue'
import * as vueRouter from 'vue-router';
const routes = [
  {
    path: '/',
    redirect: '/index'
  },{
    path:'/login',
    name:'login',
    component: Login 
  },{
    path: '/index',
    name:'index',
    component: Index
  }
]

const router = vueRouter.createRouter({
  history:vueRouter.createWebHashHistory(),
  routes,
})


export default router